package com.huxianyang.controller;

import com.huxianyang.bean.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.support.ConfigurableConversionService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 * @since 2022/06/01 19:44
 * @author HuXianyang
 */

@RestController
public class UserController {
    @RequestMapping("login1")
    public User login1(User user){
        return user;
    }

    @Autowired
    ConfigurableConversionService conversionService;

    @RequestMapping("login2")
    public User login2(User user){
        return user;
    }
}